	.arch armv8-a
	.arch_extension crc
	.arm
	.data
	.section .rodata
	.global ascii_0
	.align 4
	.size ascii_0, 4
ascii_0:
	.word 48
	.text
	.global my_getint
	.type my_getint , %function
my_getint:
	push {r4, r5, r6, r10, fp, lr}
	mov fp, sp
	sub sp, sp, #8
.L64:
	ldr r10, =0
	str r10, [fp, #-8]
	b .L67
.L67:
	ldr r4, =1
	cmp r4, #0
	bne .L68
	b .L72
.L68:
	bl getch
	mov r4, r0
	ldr r5, addr_ascii_00
	ldr r6, [r5]
	sub r5, r4, r6
	str r5, [fp, #-4]
	ldr r4, [fp, #-4]
	cmp r4, #0
	cmp r4, #0
	movlt r4, #1
	movgt r4, #0
	blt .L74
	b .L84
.L69:
	ldr r4, [fp, #-4]
	str r4, [fp, #-8]
	b .L94
.L72:
	b .L69
.L74:
	b .L67
.L75:
	b .L67
.L76:
	b .L69
.L77:
	ldr r4, [fp, #-4]
	cmp r4, #0
	cmp r4, #9
	movgt r4, #1
	movlt r4, #0
	bgt .L74
	b .L91
.L79:
	mov r0, #0
	add sp, sp, #8
	pop {r4, r5, r6, r10, fp, lr}
	bx lr
.L80:
	b .L79
.L84:
	b .L77
.L86:
	mov r0, #0
	add sp, sp, #8
	pop {r4, r5, r6, r10, fp, lr}
	bx lr
.L87:
	b .L86
.L91:
	b .L76
.L92:
	b .L75
.L93:
	b .L75
.L94:
	ldr r4, =1
	cmp r4, #0
	bne .L95
	b .L99
.L95:
	bl getch
	mov r4, r0
	ldr r5, addr_ascii_00
	ldr r6, [r5]
	sub r5, r4, r6
	str r5, [fp, #-4]
	ldr r4, [fp, #-4]
	cmp r4, #0
	cmp r4, #0
	movge r4, #1
	movle r4, #0
	bge .L104
	b .L111
.L96:
	ldr r4, [fp, #-8]
	mov r0, r4
	add sp, sp, #8
	pop {r4, r5, r6, r10, fp, lr}
	bx lr
.L99:
	b .L96
.L101:
	ldr r4, [fp, #-8]
	ldr r5, =10
	mul r6, r4, r5
	ldr r4, [fp, #-4]
	add r5, r6, r4
	str r5, [fp, #-8]
	b .L102
.L102:
	b .L94
.L103:
	b .L96
.L104:
	ldr r4, [fp, #-4]
	cmp r4, #0
	cmp r4, #9
	movle r4, #1
	movge r4, #0
	ble .L101
	b .L118
.L106:
	mov r0, #0
	add sp, sp, #8
	pop {r4, r5, r6, r10, fp, lr}
	bx lr
.L107:
	b .L106
.L111:
	b .L103
.L113:
	mov r0, #0
	add sp, sp, #8
	pop {r4, r5, r6, r10, fp, lr}
	bx lr
.L114:
	b .L113
.L118:
	b .L103
.L119:
	b .L102

	.global my_putint
	.type my_putint , %function
my_putint:
	push {r4, r5, r6, r7, r8, r10, fp, lr}
	mov fp, sp
	sub sp, sp, #72
.L120:
	str r0, [fp, #-72]
	ldr r10, =0
	str r10, [fp, #-4]
	b .L124
.L124:
	ldr r4, [fp, #-72]
	cmp r4, #0
	cmp r4, #0
	movgt r4, #1
	movlt r4, #0
	bgt .L125
	b .L133
.L125:
	ldr r4, [fp, #-72]
	ldr r5, =10
	sdiv r6, r4, r5
	mul r6, r6, r5
	sub r5, r4, r6
	ldr r4, addr_ascii_00
	ldr r6, [r4]
	add r4, r5, r6
	ldr r5, [fp, #-4]
	mov r6, #-68
	mov r7, #4
	mul r8, r5, r7
	add r5, r6, r8
	add r6, fp, r5
	str r4, [r6]
	ldr r4, [fp, #-72]
	ldr r5, =10
	sdiv r6, r4, r5
	str r6, [fp, #-72]
	ldr r4, [fp, #-4]
	ldr r5, =1
	add r6, r4, r5
	str r6, [fp, #-4]
	b .L124
.L126:
	b .L134
.L127:
	add sp, sp, #72
	pop {r4, r5, r6, r7, r8, r10, fp, lr}
	bx lr
.L128:
	add sp, sp, #72
	pop {r4, r5, r6, r7, r8, r10, fp, lr}
	bx lr
.L129:
	b .L128
.L131:
	add sp, sp, #72
	pop {r4, r5, r6, r7, r8, r10, fp, lr}
	bx lr
.L132:
	add sp, sp, #72
	pop {r4, r5, r6, r7, r8, r10, fp, lr}
	bx lr
.L133:
	b .L126
.L134:
	ldr r4, [fp, #-4]
	cmp r4, #0
	cmp r4, #0
	movgt r4, #1
	movlt r4, #0
	bgt .L135
	b .L143
.L135:
	ldr r4, [fp, #-4]
	ldr r5, =1
	sub r6, r4, r5
	str r6, [fp, #-4]
	ldr r4, [fp, #-4]
	mov r5, #-68
	mov r6, #4
	mul r7, r4, r6
	add r4, r5, r7
	add r5, fp, r4
	ldr r4, [r5]
	mov r0, r4
	bl putch
	b .L134
.L136:
	add sp, sp, #72
	pop {r4, r5, r6, r7, r8, r10, fp, lr}
	bx lr
.L137:
	add sp, sp, #72
	pop {r4, r5, r6, r7, r8, r10, fp, lr}
	bx lr
.L138:
	add sp, sp, #72
	pop {r4, r5, r6, r7, r8, r10, fp, lr}
	bx lr
.L139:
	b .L138
.L141:
	add sp, sp, #72
	pop {r4, r5, r6, r7, r8, r10, fp, lr}
	bx lr
.L142:
	add sp, sp, #72
	pop {r4, r5, r6, r7, r8, r10, fp, lr}
	bx lr
.L143:
	b .L136

	.global main
	.type main , %function
main:
	push {r4, r5, r6, r10, fp, lr}
	mov fp, sp
	sub sp, sp, #8
.L145:
	bl my_getint
	mov r10, r0
	str r10, [fp, #-8]
	b .L147
.L147:
	ldr r4, [fp, #-8]
	cmp r4, #0
	cmp r4, #0
	movgt r4, #1
	movlt r4, #0
	bgt .L148
	b .L156
.L148:
	bl my_getint
	mov r4, r0
	str r4, [fp, #-4]
	ldr r4, [fp, #-4]
	mov r0, r4
	bl my_putint
	mov r0, #10
	bl putch
	ldr r4, [fp, #-8]
	ldr r5, =1
	sub r6, r4, r5
	str r6, [fp, #-8]
	b .L147
.L149:
	mov r0, #0
	add sp, sp, #8
	pop {r4, r5, r6, r10, fp, lr}
	bx lr
.L151:
	mov r0, #0
	add sp, sp, #8
	pop {r4, r5, r6, r10, fp, lr}
	bx lr
.L152:
	b .L151
.L156:
	b .L149

addr_ascii_00:
	.word ascii_0
